<?php


class Template {
    
    protected $_ci;
    
    function __construct(){
        $this->_ci =& get_instance();
    }
    
    function display_frontend($template,$data = null){
        $data['_content']= $this->_ci->load->view($template,$data,true);
        
        $this->_ci->load->view('frontend/main',$data);
    } 
        
}